package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 产品属性对象 bi_product_attribute
 *
 * @author ruoyi
 * @date 2021-08-18
 */
@Data
@ToString
@TableName("bi_product_attribute")
public class ProductAttribute extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /** 属性编码 */
    @Excel(name = "属性编码")
    private String code;

    /** 属性名称 */
    @Excel(name = "属性名称")
    private String name;

    /** 属性类型 */
    @Excel(name = "属性类型")
    private String type;

    /** 属性值 */
    @TableField("`values`")
    @Excel(name = "属性值")
    private String values;

    /** 产品分类 */
    @Excel(name = "产品分类")
    private String classify;

    /** 计量单位id */
    @Excel(name = "计量单位id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long unitId;

    /** 是否禁用 */
    @Excel(name = "是否禁用")
    private Boolean isDisabled;

}
